package com.icloud.cer.rest.msg.processor;

import java.net.InetSocketAddress;

import org.apache.mina.core.session.IoSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.icloud.cer.rest.Constants;
import com.icloud.cer.rest.msg.MessageHeader;
import com.icloud.cer.rest.msg.MessageHolder;
import com.icloud.cer.rest.msg.MsgConstants;
import com.icloud.cer.rest.util.MessageUtils;

public class Msg102Processor extends BaseMessageProcessor implements MessageProcessor {
	
	private final Logger log = LoggerFactory.getLogger(Msg102Processor.class);
	@Override
	public void process(IoSession session, MessageHolder holder) {
		long sessionId = session.getId();
		InetSocketAddress clientAddr = connectorManager.getClientAddr(sessionId);
		if(clientAddr == null) {
			log.error("客户端没有注册，请重新注册");
			return;
		}
		MessageHeader header = MessageUtils.getHeader(Constants.SEQUENCE_LENGTH, MsgConstants.CLIENT_REQ_ENCRYPT);
		holder.getCommand();
//		header.setSize_(EncryptResponse.BYTE_COUNT);
		
	}

}
